package com.Maykk.StudentManager;

import java.util.ArrayList;

/**
 * @ClassName: Global
 * @Description: TODO 全局类
 * @Author: MaykkStar@163.com
 */
public class Global {
    public static int stuID = 1;
    public static ArrayList<Student> stuList = new ArrayList<>();

    // 构造方法私有化，禁止在类外实例化对象
    private Global() {
    }

    public static void initStuList() {
        stuList.add(new Student(stuID++, "郑紫轩", "女", 18, 95.2f));
        stuList.add(new Student(stuID++, "毛娜", "女", 19, 93.3f));
        stuList.add(new Student(stuID++, "陆林", "男", 20, 60.2f));
        stuList.add(new Student(stuID++, "谭嘉乐", "男", 21, 70.8f));
        stuList.add(new Student(stuID++, "胡军", "男", 22, 69.5f));
    }
}
